window.onload = function(){
  var box = document.querySelector('.box');
}